module game {
    export class FightAttri { //界面显示内容
        name: string
        hp: number
        maxHp: number
        attack: number
        defend: number
        crit: number
        toughness: number
        critHurt: number
        hit: number
        dodge: number
        lucky: number
        skills: number[]
        public constructor(opts) {
            this.name = opts.name || ''; //名字
            this.hp = opts.hp || 0; //生命
            this.maxHp = opts.maxHp || 0; //最大生命
            this.attack = opts.attack || 0; //攻击力
            this.defend = opts.defend || 0; //防御
            this.crit = opts.crit || 0; //暴击
            this.toughness = opts.toughness || 0; //韧性
            this.critHurt = opts.critHurt || 0; //暴击伤害
            this.hit = opts.hit || 0; //命中
            this.dodge = opts.dodge || 0; //闪避
            this.lucky = opts.lucky || 0; //幸运
            this.skills = opts.skills || []; //技能
        }
    }
}

